package com.zzyl.nursing.job;

import org.springframework.stereotype.Component;

/**
 * @author sjqn
 */
@Component("myTask")
//@Slf4j
    public class MyTask {

    /**
     * 定时任务 每隔5秒触发一次
     */
    //@Scheduled(cron = "0/5 * * * * ?")
    public void runTask() {
//        log.info("定时任务开始执行：{}", LocalDateTime.now());
        System.out.println("RunTask");
    }
}